Syntax error in Maya Python Script [on hold]

Posted by Enchanter on Game Development See other posts from Game Development or by Enchanter
Published on 2013-10-30T20:38:29Z Indexed on 2013/10/30 22:19 UTC
Read the original article Hit count: 204

Filed under:
|
|

Ok this error is immensly frustrating as it is obviously a simple syntax issue. Basically I've written two lines of maya script in python designed to create a list of the names of all the joints of a model currently selected in the model viewer. Here are the two lines of script:

import maya.cmds
joints = ls(selection = true, type = 'joint')

Upon compiling the code the script editor is saying there is a syntax error in the second line, but I do not see any reason why this code should not execute?

© Game Development or respective owner

Related posts about python

Related posts about scripting